﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Drawing;


/// <summary>
/// Summary description for Class1
/// </summary>
/// <summary>
/// Thumbnail의 요약 설명입니다.
/// </summary>
public sealed class Thumbnail : IDisposable
{
    /// <summary>
    /// Thumbnail Name
    /// </summary>
    public string Name { get; set; }
    /// <summary>
    /// Thumbnail Current Time Tick
    /// </summary>
    public Int64 Tick { get; set; }
    /// <summary>
    /// Save Thumbnail Bitmap
    /// </summary>
    public Bitmap Image { get; set; }
    /// <summary>
    /// Thumbnail Current Marker Time
    /// </summary>
    public TimeSpan MarkerTime { get; set; }

    #region IDisposable 멤버

    public void Dispose()
    {
        Dispose(true);
    }

    ~Thumbnail()
    {
        Dispose(false);
    }

    private void Dispose(bool disposing)
    {
        if (disposing)
        {
            this.Image.Dispose();

            GC.SuppressFinalize(this);
        }
    }

    #endregion
}